package com.seven.netty.protocol.enums;

/**
 * @author chendongdong
 * @description 消息类型枚举
 * @since 2024/3/6 10:45
 */
public enum MessageTypeEnum {
    BUZ_REQUEST(0,"业务请求"),
    BUZ_RESPONSE(1,"业务响应"),
    BUZ_ONEWAY(2,"即是请求也是响应"),
    HANDSHAKE_REQUEST(3,"握手请求"),
    HANDSHAKE_RESPONSE(4,"握手响应"),
    HEARTBEAT_REQUEST(5,"心跳请求"),
    HEARTBEAT_RESPONSE(6,"心跳响应"),
    ;
    private Integer type;
    private String name;
    MessageTypeEnum(Integer type,String name){
        this.name = name;
        this.type = type;
    }

    public Integer getType() {
        return type;
    }
    public String getName(){
        return name;
    }
}
